<template>
    <div>
        {{workllist}}
        <h1>展示工作流</h1>
        <table border="1px" >
            <tr>
                <td>工作流</td>
                <td>操作</td>
            </tr>
            <tr v-for="i in workllist">
                <td>{{i.name}}</td>
                <td>
                    <!-- <button>参数配置</button> -->
                    <router-link :to="{path:'/addparams',query:{'id':i.id}}">参数配置</router-link>
                </td>
            </tr>
        </table>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                workllist:[]
            }
        },
        methods: {
            getworkl(){
                this.$axios.get('/work/add/').then(res=>{
                    this.workllist = res.data.list
                    console.log(res.data.list)
                })
            },
        
        },
        mounted() {
            this.getworkl()
        },
    }
</script>

<style scoped>

</style>